Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove null address from delegator count #563

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Conversation

ying-w
Copy link
Contributor

@ying-w ying-w commented Oct 24, 2024

When a delegator first receives a delegation in the UI it will show as having 3 active delegators.

ex. https://explorer.aptoslabs.com/txn/1828020008/changes?network=mainnet

The 3 table items with balance are

  1. reward address
  2. NULL address
  3. delegator

I've changed the tooltip to reflect that reward address will be included aptos-labs/explorer#836

This logic change removes the NULL address from being counted

Context on NULL address https://github.com/aptos-labs/aptos-core/blob/114d361d6cc7119f88eec11ae562c5ec6797275a/aptos-move/framework/aptos-framework/sources/delegation_pool.move#L1568

@ying-w ying-w requested review from larry-aptos and jillxuu October 24, 2024 00:56
Copy link
Collaborator

@bowenyang007 bowenyang007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. @larry-aptos please help deploy thanks!

@@ -0,0 +1 @@
DROP VIEW IF EXISTS num_active_delegator_per_pool;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit, down should just be the previous query right? Or is this a new view?

@larry-aptos
Copy link
Collaborator

larry-aptos commented Oct 24, 2024 via email

@ying-w ying-w merged commit 56a5b05 into main Oct 24, 2024
7 checks passed
@ying-w ying-w deleted the delegator_num_update branch October 24, 2024 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants